#! /usr/bin/env python

print '.globl alltraps'
print '# handlers: '
print '.text'
for i in xrange(256):
	print '.globl vector'+str(i)
	print 'vector'+str(i)+':'
	if i not in (8, 10, 11, 12, 13, 14, 17):
		print '\tpushl $0'
	print '\tpushl $'+str(i)
	print '\tjmp alltraps'

print '# vector: '
print '.data'
print '.globl vectors'
print 'vectors:'
for i in xrange(256):
	print '\t.long vector'+str(i)

print ''

